<template>
    <div class="container">
      <div>预览</div>
    </div>
</template>
<script>

export default {
  data() {
    return {
      baseUrl:"http://ofzl.oss-cn-shenzhen.aliyuncs.com/users/"
    };
  },

  created () {
    console.log('this.$router.params.url',this.$route.params.url)
    let url=this.$route.params.url
    console.log(url)
    // window.location.href=this.baseUrl+url
    // this.blobToBase64(this.baseUrl+url)
    // var WordApp=newActiveXObject("Word.Application");
    // //注：daoIE的ActiveX安全性能dao放开才行
    // WordApp.Application.visible=false;
    // var Doc=WordApp.documents.open(path);//对版word的操作见权office的MSDNWordApp.quit();
  },
  methods: {
    blobToBase64 (blob) {
      const self = this // 绑定this
      const reader = new FileReader() //实例化一个reader文件
      reader.readAsDataURL(blob) // 添加二进制文件
      reader.onload = function (event) {
        const base64 = event.target.result // 获取到它的base64文件
        console.log('e',e)
      }
    },
  },
};

</script>
<style lang="scss" scoped>
.container{
  background-color: #f5f5f5;
  // padding-bottom: 20px;
  min-height: 100vh;
  box-sizing: border-box;
  ul{
    width: 100%;
    height: auto;
    li{
      height: 20px;
      width: 100%;
      background-color: #fff;
    }
  }
}
</style>